<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>审批赛事</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/iconfont.css">
    <link rel="stylesheet" href="../lib/layui/css/layui.css" media="all">

    <link rel="stylesheet" href="../css/xadmin.css">
    <script src="../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>
    <script src="../js/base.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        tr td,
        tr th {
            text-align: center !important;
            border: none !important;
            border-bottom: 1px solid #eee !important;
            border-top: 1px solid #eee !important;
        }


        .title {
            font-size: 18px;
            font-weight: 700;
            line-height: 95px;
            margin-bottom: -25px;
        }

        .item {
            width: 210px;
            height: 130px;
            border: 1px solid #797979;
            float: left;
            margin-left: 28px;
            margin-top: 25px;
            padding: 20px;
            box-sizing: border-box;
            -moz-box-sizing: border-box;
            /* Firefox */
            -webkit-box-sizing: border-box;
            /* Safari */
        }

        .pull-right {
            float: right;
            font-size: 13px;
            font-weight: 400;
            height: 0;
        }

        .layui-card .layui-card-body {
            position: relative;
            padding: 20px 20px;
            line-height: 24px;
            width: 100%;
        }

        .item1 {
            font-size: 18px;
            font-weight: 700;
            color: #333;
        }

        .item2,
        .item5 {
            font-size: 13px;
            color: #999;
            line-height: 32px;
            margin-top: 5px;
            list-style: unset;
            cursor: pointer;
        }

        .item3 {
            font-size: 13px;
            color: #333;
            line-height: 32px;
            list-style: unset;
            cursor: pointer;
        }

        .layui-laydate-content tr td,
        .layui-laydate-content th {
            border-bottom: none !important;
            border-top: none !important;
        }
    </style>
</head>

<body>
    <div class="layui-fluid" id="All_List">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card" style="display: flex;justify-content: space-between;">
                    <div class="layui-card-body ">
                        <blockquote class="layui-elem-quote" style="border:0;font-size: 18px;color: #000;">审批赛事
                        </blockquote>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <!-- <div class="layui-card-header">数据统计</div> -->
                    <div class="layui-fluid">
                        <div class="layui-row layui-col-space15">
                            <div class="layui-col-md12">
                                <div class="layui-card-body " style="display: flex;justify-content:space-between">
                                    <form class="layui-form" action="">
                                        <!-- <label>真实姓名</label> -->
                                        <!-- <div class="layui-inline layui-show-xs-block" style="width:120px">
                                            <input class="layui-input" id="name" placeholder="请输入真实姓名" type="text">
                                        </div> -->
                                        <div class="layui-inline layui-show-xs-block" style="width:120px">
                                            <input class="layui-input" id="recruitRedereeNum" placeholder="请输入招募裁判人数"
                                                type="text">
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width:120px">
                                            <input class="layui-input" id="depositSum" placeholder="请输入保证金金额"
                                                type="text">
                                        </div>
                                        <!-- 市/区联动 -->
                                        <div class="layui-inline layui-show-xs-block" style="width: 120px;">
                                            <select id="s_province" name="s_province" lay-filter="s_province">
                                            </select>
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 120px;">
                                            <select id="s_city" name="s_city" lay-filter="s_city">
                                            </select>
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 150px;">
                                            <select name="vsPerNum" id="vsPerNum" lay-filter="vsPerNum" lay-search>
                                                <option value="">请选择对战人数</option>
                                                <option value="1">五人制足球赛</option>
                                                <option value="2">八人制足球赛</option>
                                                <option value="3">十一人制足球赛</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 150px;">
                                            <select name="leagueMatch" id="leagueMatch" lay-filter="leagueMatch"
                                                lay-search>
                                                <option value="">请选择业余联赛等级</option>
                                                <option value="1">超级</option>
                                                <option value="2">甲级</option>
                                                <option value="3">乙级</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 130px;">
                                            <select name="rules" id="rules" lay-filter="rules" lay-search>
                                                <option value="">请选择赛事规则</option>
                                                <option value="1">循环赛</option>
                                                <option value="2">淘汰赛</option>
                                                <option value="3">混合制</option>
                                                <option value="4">单场比赛</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 130px;">
                                            <select name="status" id="status" lay-filter="status" lay-search>
                                                <option value="">请选择赛事状态</option>
                                                <option value="0">待审核</option>
                                                <option value="1">审批通过</option>
                                                <option value="2">审批拒绝</option>
                                            </select>
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 120px;">
                                            <input id="competitionStartTime" name="competitionStartTime"
                                                placeholder="赛事起始时间" class="layui-input">
                                        </div>
                                        <div class="layui-inline layui-show-xs-block" style="width: 120px;">
                                            <input id="competitionEndTime" name="competitionEndTime"
                                                placeholder="赛事结束时间" class="layui-input">
                                        </div>
                                        <div class="layui-inline layui-show-xs-block">
                                            <button class="layui-btn search" data-type="reload" lay-filter="add">搜索
                                            </button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card" style="display: flex;justify-content: space-between;">
                    <div class="layui-card-body ">
                        <div class="display0" style="display:none">
                            <div class="layui-btn layui-btn-normal" id="newMatch" >发布新赛事</div>
                        </div>
                        
                        <div class="display1" style="display:none">
                            <div class="title">待审批赛事</div>
                            <table id="match_list1" lay-filter="test1" lay-data="{id: 'testReload1'}"></table>
                        </div>
                        
                        <script type="text/html" id="barDemo">
                            <a lay-event="watch" class="btn_a layui-btn layui-btn-xs">查看</a>
                            {{#  if(d.recruitRefereeStatus=="0"&&(d.typeId.split(",").indexOf("1")!==-1||d.typeId.split(",").indexOf("3")!==-1)){}}
                            <a lay-event="zhaomu" class="btn_a layui-btn layui-btn-xs">招募裁判</a>
                            {{#  } }}
                            {{#  if(d.recruitRefereeStatus=="1"&&(d.typeId.split(",").indexOf("1")!==-1||d.typeId.split(",").indexOf("3")!==-1)){}}
                            <a lay-event="zhaomu" class="btn_a layui-btn layui-btn-xs">招募详情</a>
                            {{#  } }}
                            <a lay-event="baoming" class="btn_a layui-btn layui-btn-xs">球队报名信息</a>
                            {{#  if(d.typeId.split(",").indexOf("1")!==-1||d.typeId.split(",").indexOf("2")!==-1){}}
                            <a lay-event="team" class="btn_a layui-btn layui-btn-xs">球队报名详情</a>
                            {{#  } }}
                            
                        </script>
                        <!-- <div style="margin-left: -28px;">
                            <div class="item" v-cloak v-for="item in items"
                                :data-data.='item.data.' :data-id='item.id'>
                                <div class="item1" @click="open(item.id)" style="cursor: pointer">{{item.name}}</div>
                                <li class="item2">{{item.teamApplyStatus}}</li>
                                <li class="item3" @click='flag?Jump(item.data.,item.id):""'>
                                    {{item.data.Name}}
                                </li>
                            </div>
                            <div style="clear: both;"></div>
                        </div> -->
                        <div class="display2" style="display:none">
                            <div class="title">已结束赛事</div>
                            <table id="match_list2" lay-filter="test2" lay-data="{id: 'testReload2'}"></table>
                        </div>
                        
                        <script type="text/html" id="barDemo2">
                            <a lay-event="watch" class="btn_a layui-btn layui-btn-xs">查看</a>
                            {{#  if(d.competitionData=="0"&&(d.typeId.split(",").indexOf("1")!==-1||d.typeId.split(",").indexOf("4")!==-1)){}}
                            <a lay-event="wanshan" class="btn_a layui-btn layui-btn-xs">完善信息</a>
                            {{#  } }}
                        </script>
                        <!-- <div style="margin-left: -28px;">
                            <div class="item" v-cloak v-for="item in end" :data-competitionData='item.competitionData'
                                :data-id='item.id'>
                                <div class="item1" @click="open(item.id)">{{item.name}}</div>
                                <li class="item5" @click='end_Jump(item.competitionData,item.id)'>
                                    {{item.competitionDataName}}
                                </li>
                            </div>
                            <div style="clear: both;"></div>
                        </div> -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</body>
<script src="../js/area.js"></script>
<script>
    _init_area(); //市区联动初始函数
    layui.use(['table', 'form', 'laydate'], function () {
        var table = layui.table;
        var form = layui.form;
        var laydate = layui.laydate;
        var index = layer.load(1); //添加laoding,0-2两种方式



        $.ajax({
            type: "post",
            url: getAdminByAdminId,
            data: {

            },
            success: function (res) {
            
                if (res.admin.typeName.indexOf("赛事审批管理员") !== -1||res.admin.typeName.indexOf("裁判员管理员") !== -1) {
                    $(".display1").css("display","block")
                    $(".display2").css("display","block")
                }
                if (res.admin.typeName.indexOf("市级各地足球协会") !== -1||res.admin.typeName.indexOf("区级各地足球协会") !== -1||res.admin.typeName.indexOf("超级管理员") !== -1) {
                    $(".display0").css("display","block")
                    $(".display1").css("display","block")
                    $(".display2").css("display","block")
                }
                if (res.admin.typeName.indexOf("裁判员") !== -1) {
                    $(".display2").css("display","block")
                }
            },
            error: function (error) {
                console.log(error)
            }
        })














        form.on('select(s_province)', function (data) {
            change(1);
            form.render('select');
        });
        form.on('select(s_city)', function (data) {
            form.render('select');
        });

        var date1 = laydate.render({
            elem: '#competitionStartTime',
            type: 'date'
        })
        var date2 = laydate.render({
            elem: '#competitionEndTime',
            type: 'date'
        })
        // layer.close(index)
        var table1 = table.render({
            elem: '#match_list1', //指定原始表格元素选择器（推荐id选择器）
            // height: 600,
            width: "100%",
            // 附加参数，post token
            loading: true,
            method: 'get',
            url: getNewcompetitionList, //数据接口
            page: true, //开启分页
            // toolbar: 'default', //开启工具栏，此处显示默认图标
            cols: [
                [ //表头
                    // { type: 'checkbox', fixed: 'left' },
                    {
                        field: 'id',
                        title: 'ID',
                        width: 150
                    },
                    {
                        field: 'name',
                        title: '赛事名称',
                        width: 150
                    },
                    {
                        field: 'recruitRefereeStatusName',
                        title: '裁判员招募状态',
                        width: 150
                    },
                    {
                        field: 'recruitRedereeNums',
                        title: '裁判员招募数量',
                        width: 150
                    },
                    {
                        field: 'teamApplyStatus',
                        title: '球队报名状态',
                        width: 150
                    },
                    {
                        field: 'teamApplyNum',
                        title: '球队报名数量',
                        width: 150
                    },
                    {
                        fixed: 'right',
                        title: "操作",
                        width: 420,
                        align: 'center',
                        toolbar: '#barDemo'
                    }
                ]
            ],
            id: 'testReload1',
            done: function (res) {
                console.log(res)
                if (res.msg == "2") {
                    parent.window.location.href = getRequestPrefix() + "/footBallAdmin/login.html"
                }
                layer.close(index)
            }
        });
        var table2 = table.render({
            elem: '#match_list2', //指定原始表格元素选择器（推荐id选择器）
            // height: 600,
            width: "100%",
            // 附加参数，post token
            loading: true,
            method: 'get',
            url: getNewcompetitionLists, //数据接口
            page: true, //开启分页
            // toolbar: 'default', //开启工具栏，此处显示默认图标
            cols: [
                [ //表头
                    // { type: 'checkbox', fixed: 'left' },
                    {
                        field: 'id',
                        title: 'ID',
                        width: 150
                    },
                    {
                        field: 'name',
                        title: '赛事名称',
                        width: 150
                    },
                    {
                        field: 'competitionDataName',
                        title: '赛事信息完善状态',
                        width: 150
                    },
                    {
                        fixed: 'right',
                        title: "操作",
                        width: 360,
                        align: 'center',
                        toolbar: '#barDemo2'
                    }
                ]
            ],
            id: 'testReload2',
            done: function (res) {
                console.log(res)
                if (res.msg == "2") {
                    parent.window.location.href = getRequestPrefix() + "/footBallAdmin/login.html"
                }
                layer.close(index)
            }
        });
        //监听头工具栏事件
        //监听点击的按钮，获取行信息
        table.on('tool(test1)', function (obj) { //注：tool 是工具条事件名，test 是 table 原始容器的属性 lay-filter="对应的值"
            //获得当前行数据
            var $ = layui.$
            var data = obj.data,
                layEvent = obj.event; //获得 lay-event 对应的值

            //点击查看
            if (layEvent === "watch") {
                layer.open({
                    content: "match_info.html",
                    type: 2,
                    area: ["100%", "100%"],
                    title: "查看信息",
                    shadeClose: true,
                    success: function (layero, index) {
                        //获取点击行的数据,获取打开的iframe
                        // console.log(data)
                        var body = layer.getChildFrame('body', index);
                        var iframeWin = window[layero.find('iframe')[0]['name']];
                        body.find('.title').attr("data-val", data.id)
                    }
                })
            };

            if (layEvent === "zhaomu") {
                if (data.recruitRefereeStatus == 0) {
                    // 点击招募裁判
                    layer.open({
                        content: "recruit_Referee_two.html",
                        type: 2, //打开的窗口的类型
                        area: ["100%", "100%"],
                        title: "招募裁判",
                        shadeClose: true,
                        success: function (layero, index) {
                            var iframe = window['layui-layer-iframe' + index];
                            //调用子页面的全局函数
                            iframe.child(data.id)
                        }
                    })
                } else {
                    // 点击招募信息
                    layer.open({
                        content: "recruit_Referee.html",
                        type: 2, //打开的窗口的类型
                        area: ["100%", "100%"],
                        title: "招募裁判",
                        shadeClose: true,
                        success: function (layero, index) {
                            var iframe = window['layui-layer-iframe' + index];
                            //调用子页面的全局函数
                            iframe.child(data.id)
                        }
                    })
                }
            };
            // 点击球队报名信息
            if (layEvent === "baoming") {
                layer.open({
                    content: "team_details.html",
                    type: 2, //打开的窗口的类型
                    area: ["50%", "70%"],
                    title: "报名详情",
                    shadeClose: true,
                    success: function (layero, index) {
                        var iframe = window['layui-layer-iframe' + index];
                        //调用子页面的全局函数
                        iframe.child(data.id)
                    }
                })
            };

            if (layEvent == 'team') {
                layer.open({
                    content: "tDetail.html",
                    type: 2, //打开的窗口的类型
                    area: ["100%", "100%"],
                    title: "报名详情",
                    shadeClose: true,
                    success: function (layero, index) {
                        // var iframe = window['layui-layer-iframe' + index];
                        // //调用子页面的全局函数
                        // console.log(iframe,'输出子页面对象')
                        // console.log(data.id,'输出传给子页面对象的赛事id')
                        var body = layer.getChildFrame('body', index);
                        body.find('#id').attr("data-id", data.id); //填补ID
                        $.ajax({
                            url: findNewcompetitionById,
                            type: 'get',
                            data: {
                                id: data.id
                            },
                            dataType: 'json',
                            success: function (data) {
                                console.log(data)
                                if (data.msg == 0) {
                                    body.find('.name').text(data.newcompetition
                                        .name)
                                    body.find('.vsPerNum').text(data
                                        .newcompetition.vsPerNum)
                                    body.find('.competitionStartTime').text(data
                                        .newcompetition.competitionStartTime
                                        )
                                    body.find('.competitionEndTime').text(data
                                        .newcompetition.competitionEndTime)
                                    body.find('.rules').text(data.newcompetition
                                        .rules)
                                    body.find('.province').text(data
                                        .newcompetition.province)
                                } else if (data.msg != 0) {
                                    layer.alert(data.msg, {
                                        title: '提示'
                                    })
                                }
                            },
                            error: function (data) {
                                console.log(data)
                                layer.alert(data.msg, {
                                    title: '提示'
                                })
                            }
                        });
                    }
                })
            }
        });
        table.on('tool(test2)', function (obj) { //注：tool 是工具条事件名，test 是 table 原始容器的属性 lay-filter="对应的值"
            //获得当前行数据
            var $ = layui.$
            var data = obj.data,
                layEvent = obj.event; //获得 lay-event 对应的值

            //点击查看
            if (layEvent === "watch") {
                layer.open({
                    content: "match_info.html",
                    type: 2,
                    area: ["100%", "100%"],
                    title: "查看信息",
                    shadeClose: true,
                    success: function (layero, index) {
                        //获取点击行的数据,获取打开的iframe
                        // console.log(data)
                        var body = layer.getChildFrame('body', index);
                        var iframeWin = window[layero.find('iframe')[0]['name']];
                        body.find('.title').attr("data-val", data.id)
                    }
                })
            };
            if (layEvent === "wanshan") {
                layer.open({
                    content: "event_data.html",
                    type: 2, //打开的窗口的类型
                    area: ["100%", "100%"],
                    title: "赛事数据",
                    shadeClose: true,
                    success: function (layero, index) {
                        var iframe = window['layui-layer-iframe' + index];
                        //调用子页面的全局函数
                        iframe.child(data.id)
                    }
                })
            };
        });
        $("#newMatch").on("click", function () {
            layer.open({
                content: "newMatch.html",
                type: 2, //打开的窗口的类型
                area: ["100%", "100%"],
                title: "发布新赛事",
                shadeClose: true,
                success: function (layero, index) {
                    // console.log("sdsd")
                }
            })
        })
        //给查询添加点击事件
        $('.search').on('click', function () {
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
            //一定要阻止表单的默认行为（刷新）
            return false
        });
        //头部输入框筛选功能
        active = {

            reload: function () {

                var competitionStartTime = $('#competitionStartTime');
                var competitionEndTime = $('#competitionEndTime');
                var province = $('#s_province').val();
                var city = $('#s_city').val();
                var vsPerNum = $('#vsPerNum');
                var leagueMatch = $('#leagueMatch');
                var rules = $('#rules');
                var recruitRedereeNum = $('#recruitRedereeNum');
                var depositSum = $('#depositSum');
                var status = $('#status');

                if (province == "省份") {
                    province = ""
                }
                if (city == "地级市") {
                    city = ""
                }
                // 执行重载（重新加载数据表格）
                table.reload('testReload1', {
                    page: {
                        curr: 1 //重新从第 1 页开始
                    },
                    where: {
                        "city": city,
                        "province": province,
                        "competitionStartTime": competitionStartTime.val(),
                        "competitionEndTime": competitionEndTime.val(),
                        "vsPerNum": vsPerNum.val(),
                        "leagueMatch": leagueMatch.val(),
                        "rules": rules.val(),
                        "recruitRedereeNum": recruitRedereeNum.val(),
                        "depositSum": depositSum.val(),
                        "status": status.val()
                    }
                }, 'data');
                table.reload('testReload2', {
                    page: {
                        curr: 1 //重新从第 1 页开始
                    },
                    where: {
                        "city": city,
                        "province": province,
                        "competitionStartTime": competitionStartTime.val(),
                        "competitionEndTime": competitionEndTime.val(),
                        "vsPerNum": vsPerNum.val(),
                        "leagueMatch": leagueMatch.val(),
                        "rules": rules.val(),
                        "recruitRedereeNum": recruitRedereeNum.val(),
                        "depositSum": depositSum.val(),
                        "status": status.val()
                    }
                }, 'data');
            }
        };



        // var app = new Vue({
        //     el: "#All_List",
        //     data: {
        //         items: [],
        //         end: [],
        //         flag: false
        //     },
        //     methods: {
        //         index: function () {
        //             var that = this
        //             $.ajax({
        //                 url: getNewcompetitionList,
        //                 type: 'get',
        //                 data: {},
        //                 dataType: 'json',
        //                 success: function (data) {
        //                     console.log(data)
        //                     if (data.msg == 0) {
        //                         that.items = data.notNewcompetitionList
        //                         that.end = data.newcompetitionList
        //                     } else {
        //                         layer.alert(data.msg, {
        //                             title: '提示'
        //                         })
        //                     }
        //                 },
        //                 error: function (data) {
        //                     console.log(data)
        //                     layer.alert(data.msg, {
        //                         title: '提示'
        //                     })
        //                 }
        //             });
        //             $.ajax({
        //                 url: findUserById,
        //                 type: 'get',
        //                 data: {},
        //                 dataType: 'json',
        //                 success: function (data) {
        //                     console.log(data)
        //                     if (data.msg == 0) {
        //                         if (data.user.identity == '裁判员') {
        //                             $("#href").attr("href", "match_list_judge.html");
        //                             $("#newMatch").css("display", "none");
        //                             that.flag = false
        //                         } else {
        //                             that.flag = true
        //                         }
        //                     } else {
        //                         parent.window.location.href = getRequestPrefix() +
        //                             "/footBallAdmin/login.html"
        //                     }
        //                 },
        //                 error: function (data) {
        //                     console.log(data)
        //                     layer.alert(data.msg, {
        //                         title: '提示'
        //                     })
        //                 }
        //             });
        //         },
        //         open: function (id) {
        //             layer.open({
        //                 content: "match_info.html",
        //                 type: 2,
        //                 area: ["100%", "100%"],
        //                 title: "查看信息",
        //                 shadeClose: true,
        //                 success: function (layero, index) {
        //                     //获取点击行的数据,获取打开的iframe
        //                     // console.log(data)
        //                     var body = layer.getChildFrame('body', index);
        //                     var iframeWin = window[layero.find('iframe')[0]['name']];
        //                     body.find('.title').attr("data-val", id)
        //                 }
        //             })
        //         },
        //         add_new: function () {
        //             var that = this
        //             layer.open({
        //                 content: "newMatch.html",
        //                 type: 2, //打开的窗口的类型
        //                 area: ["100%", "100%"],
        //                 title: "发布新赛事",
        //                 shadeClose: true,
        //                 success: function (layero, index) {
        //                     // console.log("sdsd")
        //                 }
        //             })
        //         },
        //         Jump: function (data., id) {
        //             var that = this
        //             var id = id
        //             if (data. == 0) {
        //                 layer.open({
        //                     content: "recruit_Referee_two.html",
        //                     type: 2, //打开的窗口的类型
        //                     area: ["100%", "100%"],
        //                     title: "招募裁判",
        //                     shadeClose: true,
        //                     success: function (layero, index) {
        //                         var iframe = window['layui-layer-iframe' + index];
        //                         //调用子页面的全局函数
        //                         iframe.child(id)
        //                     }
        //                 })
        //             } else {
        //                 layer.open({
        //                     content: "recruit_Referee.html",
        //                     type: 2, //打开的窗口的类型
        //                     area: ["100%", "100%"],
        //                     title: "招募裁判",
        //                     shadeClose: true,
        //                     success: function (layero, index) {
        //                         var iframe = window['layui-layer-iframe' + index];
        //                         //调用子页面的全局函数
        //                         iframe.child(id)
        //                     }
        //                 })
        //             }
        //         },
        //         end_Jump: function (competitionData, id) {
        //             var that = this
        //             if (competitionData != 1) {
        //                 layer.open({
        //                     content: "event_data.html",
        //                     type: 2, //打开的窗口的类型
        //                     area: ["100%", "100%"],
        //                     title: "赛事数据",
        //                     shadeClose: true,
        //                     success: function (layero, index) {
        //                         var iframe = window['layui-layer-iframe' + index];
        //                         //调用子页面的全局函数
        //                         iframe.child(id)
        //                     }
        //                 })
        //             }
        //         },
        //     },
        //     created: function () {
        //         this.index()
        //     }
        // })

    })
</script>

</html>